package com.fr.cell.clipboard;

import com.fr.report.FloatElement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class FloatElementsClip
  implements Cloneable, Serializable
{
  private List floatElementList = new ArrayList();

  public void clearCellElemens()
  {
    this.floatElementList.clear();
  }

  public void addFloatElement(FloatElement paramFloatElement)
  {
    this.floatElementList.add(paramFloatElement);
  }

  public int getFloatElementCount()
  {
    return this.floatElementList.size();
  }

  public FloatElement getFloatElement(int paramInt)
  {
    return ((FloatElement)this.floatElementList.get(paramInt));
  }

  public Object clone()
    throws CloneNotSupportedException
  {
    FloatElementsClip localFloatElementsClip = (FloatElementsClip)super.clone();
    ArrayList localArrayList = new ArrayList();
    for (int i = 0; i < this.floatElementList.size(); ++i)
      localArrayList.add(((FloatElement)this.floatElementList.get(i)).clone());
    localFloatElementsClip.floatElementList = localArrayList;
    return localFloatElementsClip;
  }
}